Please input the file pathname: 4_c2.txt

> startNewDay|01-Jan-2025

> hire|Bob|30
Done.

> hire|John|30
Done.

> hire|May|20
Done.

> hire|Ann|20
Done.

> setupTeam|Production Team|Bob
Done.

> setupTeam|Sales Team|Bob
Done.

> addTeamMember|Production Team|John
Done.

> addTeamMember|Sales Team|May
Done.

> addTeamMember|Sales Team|Ann
Done.

> applyLeave|Bob|AL|3-Jan-2025|4-Jan-2025|Production Team|John
Missing input:  Please provide the acting head for Sales Team

> applyLeave|Bob|AL|3-Jan-2025|4-Jan-2025|Sales Team|May
Missing input:  Please provide the acting head for Production Team

> applyLeave|Bob|AL|3-Jan-2025|4-Jan-2025|Production Team|John|Sales Team|Mandy
Employee (Mandy) not found for Sales Team!

> applyLeave|Bob|AL|3-Jan-2025|4-Jan-2025|Production Team|John|Sales Team|John
Employee (John) not found for Sales Team!

> listTeamMembers
Production Team:
Bob (Head of Team)
John

Sales Team:
Ann
Bob (Head of Team)
May


> applyLeave|Bob|BL|3-Jan-2025|9-Jan-2025|Production Team|John|Sales Team|May
Done.

> applyLeave|Ann|AL|3-Jan-2025|4-Jan-2025
Done.

> applyLeave|May|AL|3-Jan-2025|4-Jan-2025
Cannot take leave.  May is the acting head of Sales Team during 3-Jan-2025 to 9-Jan-2025!

> applyLeave|John|AL|8-Jan-2025|9-Jan-2025
Cannot take leave.  John is the acting head of Production Team during 3-Jan-2025 to 9-Jan-2025!

> applyLeave|May|AL|3-Feb-2025|4-Feb-2025
Done.

> applyLeave|John|AL|1-Jan-2025|2-Jan-2025
Done.

> listTeamMembers
Production Team:
Bob (Head of Team)
John
Acting heads:
3-Jan-2025 to 9-Jan-2025: John

Sales Team:
Ann
Bob (Head of Team)
May
Acting heads:
3-Jan-2025 to 9-Jan-2025: May


> listLeaves
Ann:
3-Jan-2025 to 4-Jan-2025 [AL]
Bob:
3-Jan-2025 to 9-Jan-2025 [BL]
John:
1-Jan-2025 to 2-Jan-2025 [AL]
May:
3-Feb-2025 to 4-Feb-2025 [AL]
